<template>
  <view>
    <uv-load-more v-if="isReachBottom" @loadmore="loadmore" :status="status" :loading-text="loadingText"
                  :loadmore-text="loading.loadmoreText"
                  nomore-text=" "/>
  </view>
</template>

<script>
export default {
  name: "Loadmore",
  props: {
    isReachBottom:{
      type: Boolean,
      default:function (){
        return false;
      }
    },
    status:{
      type: String,
      default:function (){
        return "nomore"
      }
    },
    loadmoreText:{
     type:String,
     default:function (){
       return "加载更多"
     }
    },
    loadingText:{
      type:String,
      default:function (){
        return "加载中"
      }
    }
  },
  data() {
    return {
      old: {
        scrollTop: 0
      }
    }
  },
  methods:{
    loadmore: function (e) {
      console.log("到底了", e);
      this.$emit("loadmore", {})
    },
  }
}
</script>

<style scoped lang="scss">

</style>
